<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户管理</title>
<%@ include file="/resources/jsp/rootPath.jsp"%>
</head>
<body>
	<%@ include file="/resources/jsp/header.jsp"%>

	<!-- content start -->
	<div class="am-cf admin-main">
		<%@ include file="/resources/jsp/left.jsp"%>
		<!-- content start -->
		<div class="admin-content">
			<form action="${root}/sys/organization/saveSysOrgPerson.do"
				method="post" data-am-validator>
				<c:if test="${method=='edit' }">
					<input type="hidden" name="fdId" value="${person.fdId}" />
				</c:if>
				<div class="am-cf am-padding">
					<div class="am-fl am-cf">
						<strong class="am-text-primary am-text-lg">表单</strong> / <small>form</small>
					</div>
				</div>

				<div class="am-tabs am-margin" data-am-tabs>
					<ul class="am-tabs-nav am-nav am-nav-tabs">
						<li class="am-active"><a href="#tab1">基本信息</a></li>
						<li><a href="#tab2">详细描述</a></li>
					</ul>

					<div class="am-tabs-bd">
						<div class="am-tab-panel am-fade am-in am-active" id="tab1">
							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">姓名</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdName"
										value="${person.fdName}" minlength="3" placeholder="输入用户名（至少 3 个字符）"
										required />
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">编号</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdNo"
										value="${person.fdNo}" />
								</div>
							</div>


							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">邮件地址</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdEmail"
										value="${person.fdEmail}" />
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">手机号码</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdMobileNo"
										value="${person.fdMobileNo}" />
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">办公电话</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdWorkPhone"
										value="${person.fdWorkPhone}" />
								</div>
							</div>


						</div>

						<div class="am-tab-panel am-fade" id="tab2">
							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">登录名</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdLoginName"
										value="${person.fdLoginName}" minlength="3"  placeholder="输入登录名（至少 3 个字符）"
										required />
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">密码</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="password" class="am-input-sm" name="fdNewPassword"
										value="${person.fdPassword}" minlength="1" placeholder="输入密码（至少 1个字符）"
										required >
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">默认语言</div>
								<div class="am-u-sm-8 am-u-md-10">
									<select name="fdDefaultLang" value="${person.fdDefaultLang}">
										<option value="">默认语言</option>
										<option value="zh-CN" selected="">中文</option>
										<option value="en-US">English</option>
									</select>
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">关键字</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdKeyword"
										value="${person.fdKeyword}">
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">排序号</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdOrder"
										value="${person.fdOrder}">
								</div>
							</div>


							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">是否业务相关</div>
								<div class="am-u-sm-8 am-u-md-10">
									<label><input name="fdIsBusiness" type="radio"
										checked="" value="true">是 </label> <label><input
										name="fdIsBusiness" type="radio" value="false">否 </label>
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">性别</div>
								<div class="am-u-sm-8 am-u-md-10">
									<label><input name="fdSex" type="radio" checked=""
										value="M">男 </label> <label><input name="fdSex"
										type="radio" value="F">女 </label>
								</div>
							</div>


						</div>


					</div>
				</div>

				<div class="am-margin">
					<button type="submit"
						class="am-btn am-btn-primary am-btn-xs">提交保存</button>
					<button type="button" onclick="cancle()"
						class="am-btn am-btn-primary am-btn-xs">放弃保存</button>
				</div>
			</form>
		</div>

	</div>
	<%@ include file="/resources/jsp/foot.jsp"%>
</body>
<script type="text/javascript">
	function submit() {
		$("form").submit();
	}

	function cancle() {
		window.location.href = "${root}/sys/organization/sysOrgPerson.do";
	}
</script>
</html>